ExamPlay Light Logo
दाखिल करना

Computer Science for IGCSE & O level - Programming (Section 9 - No. 41)

What does the following Python code do? `myFile = open('myText.txt', 'r')`
Opens a file named 'myText.txt' for writing.
Opens a file named 'myText.txt' for reading.
Closes a file named 'myText.txt'.
Creates a file named 'myText.txt'.

स्पष्टीकरण

The 'r' means 'read' mode, for reading from the file.

टिप्पणियाँ (0)

टिप्पणी करने के लिए लॉगिन करें
विज्ञापन
BrainBehindX Inc Logo
©2026; द्वारा संचालित BrainBehindX Inc